package com.eonmind.common.contract.enums.ai;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ConversationTypeEnum {
    AI_CHAT(0, "用户对话");
    private final Integer code;
    private final String desc;

    public static ConversationTypeEnum getByCode(Integer code) {
        for (ConversationTypeEnum conversationTypeEnum : values()) {
            if (conversationTypeEnum.getCode().equals(code)) {
                return conversationTypeEnum;
            }
        }
        return null;
    }
}
